package com.huashi.dealer.modular.business.article.service;

import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.baomidou.mybatisplus.extension.service.IService;
import com.huashi.dealer.commonEntity.Article;
import com.huashi.dealer.modular.business.article.param.StoreArticleAddParam;
import com.huashi.dealer.modular.business.article.param.StoreArticleEditParam;
import com.huashi.dealer.modular.business.article.param.StoreArticleListParam;
import com.huashi.dealer.modular.business.article.vo.StoreArticleListVo;

public interface StoreArticleService extends IService<Article> {

    Page<StoreArticleListVo> getArticlePage(StoreArticleListParam param, Page<StoreArticleListVo> page);

    void addArticle(StoreArticleAddParam param);

    void editArticle(StoreArticleEditParam param);

    void deleteArticle(Long id);

    /**
     * 获取文章详情（用于编辑回显）
     * @param articleId 文章ID
     * @return 文章详情VO
     */
    StoreArticleListVo getArticleDetail(Long articleId);
}


